package com.taiic.fourimu;

import android.util.Log;

public class ImuManager {

    // Used to load the 'fourimu' library on application startup.
    static {
        System.loadLibrary("fourimu");
    }
    private static final String TAG = "taiic_ImuManager";
    private static ImuManager instance;
    private ImuManager(){
        //构造函数
        Log.i(TAG, "ImuManager: 构造函数");
    }
    public static synchronized ImuManager getInstance(){
        if(instance == null)
            instance = new ImuManager();
        return instance;
    }

    /**
     * A native method that is implemented by the 'fourimu' native library,
     * which is packaged with this application.
     */
    public native void startImu();
    public native void stopImu();
}